package com.competition.web.admin.config;

import org.mybatis.spring.boot.autoconfigure.ConfigurationCustomizer;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import com.competition.web.admin.interceptor.UserOperatorLog;


@Configuration
public class MybatisConfig {

	@Bean
    public ConfigurationCustomizer mybatisConfigurationCustomizer() {
        return new ConfigurationCustomizer() {
            @Override
            public void customize(org.apache.ibatis.session.Configuration configuration) {
            	
            	// TODO 目前 先注释
//                configuration.addInterceptor(new UserOperatorLog());
            }
        };
    }
}
